package cn.studentinfo.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.studentinfo.dao.StudentMapper;
import cn.studentinfo.pojo.student;
import cn.studentinfo.service.StudentService;

@Service("studentService")
public class StudentServiceImpl implements StudentService{
	@Autowired
	private StudentMapper studentMapper;
	
	
	@Override
	public List<student> getAllStudentInfo() {
		// TODO Auto-generated method stub
		return studentMapper.getAllStudentInfo();
	}

	@Override
	public int addStudentInfo(student student) {
		// TODO Auto-generated method stub
		return studentMapper.addStudentInfo(student);
	}

}
